# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-rtslib
_pkgname=rtslib-fb
pkgver=2.1_p69
_ver=${pkgver/_rc/rc}
_ver=${_ver/_p/.fb}
pkgrel=3
pkgdesc="Python library that provides an object API to RisingTide Systems generic SCSI Target"
options="!check" # No testsuite
url="https://github.com/open-iscsi/rtslib-fb"
arch="noarch"
license="Apache-2.0"
depends="py3-udev python3 py3-six"
makedepends="py3-setuptools"
source="https://github.com/open-iscsi/rtslib-fb/archive/v${_ver}.tar.gz"
builddir="$srcdir"/${_pkgname}-${_ver}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root="$pkgdir"
#	install -D -m644 specs/ib_srpt.spec $pkgdir/var/lib/target/fabric/ib_srpt.spec
#	install -D -m644 specs/iscsi.spec $pkgdir/var/lib/target/fabric/iscsi.spec
#	install -D -m644 specs/loopback.spec $pkgdir/var/lib/target/fabric/loopback.spec
#	install -D -m644 specs/qla2xxx.spec $pkgdir/var/lib/target/fabric/qla2xxx.spec
#	install -D -m644 specs/tcm_fc.spec $pkgdir/var/lib/target/fabric/tcm_fc.spec
}

sha512sums="552e660eb8aa26ac44f1ac089143a39e10106c1859db863c63ad5469e8ab0b0cdd0fba8f6fc30633cfd321ec0d72f6063ea0e8944aaa228de118400380b5418b  v2.1.fb69.tar.gz"
